package com.ruoyi.project.chargesystem.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.chargesystem.domain.CharReturnMoney;
import com.ruoyi.project.chargesystem.service.ICharReturnMoneyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/chargesystem/returnMoney")
public class CharReturnMoneyController extends BaseController {
    @Autowired
    private ICharReturnMoneyService iCharReturnMoneyService;

    @PreAuthorize("@ss.hasPermi('chargesystem:returnMoney:list')")
    @GetMapping("/list")
    public TableDataInfo list(CharReturnMoney charReturnMoney)
    {
        startPage();
        List<CharReturnMoney> list = iCharReturnMoneyService.selectAllCharReturnMoneyInfo(charReturnMoney);
        return getDataTable(list);
    }
}
